.class public Lcom/niceapp/lib/tagview/TagView;
.super Landroid/widget/ToggleButton;
.source "TagView.java"


# instance fields
.field private mCheckEnable:Z


# direct methods
.method public constructor <init>(Landroid/content/Context;)V
    .registers 3
    .param p1, "context"    # Landroid/content/Context;

    .prologue
    .line 12
    invoke-direct {p0, p1}, Landroid/widget/ToggleButton;-><init>(Landroid/content/Context;)V

    .line 9
    const/4 v0, 0x1

    iput-boolean v0, p0, Lcom/niceapp/lib/tagview/TagView;->mCheckEnable:Z

    .line 13
    invoke-direct {p0}, Lcom/niceapp/lib/tagview/TagView;->init()V

    .line 14
    return-void
.end method

.method public constructor <init>(Landroid/content/Context;Landroid/util/AttributeSet;)V
    .registers 4
    .param p1, "context"    # Landroid/content/Context;
    .param p2, "attrs"    # Landroid/util/AttributeSet;

    .prologue
    .line 17
    invoke-direct {p0, p1, p2}, Landroid/widget/ToggleButton;-><init>(Landroid/content/Context;Landroid/util/AttributeSet;)V

    .line 9
    const/4 v0, 0x1

    iput-boolean v0, p0, Lcom/niceapp/lib/tagview/TagView;->mCheckEnable:Z

    .line 18
    invoke-direct {p0}, Lcom/niceapp/lib/tagview/TagView;->init()V

    .line 19
    return-void
.end method

.method public constructor <init>(Landroid/content/Context;Landroid/util/AttributeSet;I)V
    .registers 5
    .param p1, "context"    # Landroid/content/Context;
    .param p2, "attrs"    # Landroid/util/AttributeSet;
    .param p3, "defStyle"    # I

    .prologue
    .line 22
    const/4 v0, 0x0

    invoke-direct {p0, p1, p2, v0}, Landroid/widget/ToggleButton;-><init>(Landroid/content/Context;Landroid/util/AttributeSet;I)V

    .line 9
    const/4 v0, 0x1

    iput-boolean v0, p0, Lcom/niceapp/lib/tagview/TagView;->mCheckEnable:Z

    .line 23
    invoke-direct {p0}, Lcom/niceapp/lib/tagview/TagView;->init()V

    .line 24
    return-void
.end method

.method private init()V
    .registers 2

    .prologue
    const/4 v0, 0x0

    .line 27
    invoke-virtual {p0, v0}, Lcom/niceapp/lib/tagview/TagView;->setTextOn(Ljava/lang/CharSequence;)V

    .line 28
    invoke-virtual {p0, v0}, Lcom/niceapp/lib/tagview/TagView;->setTextOff(Ljava/lang/CharSequence;)V

    .line 29
    const-string v0, ""

    invoke-virtual {p0, v0}, Lcom/niceapp/lib/tagview/TagView;->setText(Ljava/lang/CharSequence;)V

    .line 30
    sget v0, Lcom/niceapp/lib/tagview/R$drawable;->tag_bg:I

    invoke-virtual {p0, v0}, Lcom/niceapp/lib/tagview/TagView;->setBackgroundResource(I)V

    .line 31
    return-void
.end method


# virtual methods
.method public setCheckEnable(Z)V
    .registers 3
    .param p1, "enable"    # Z

    .prologue
    .line 34
    iput-boolean p1, p0, Lcom/niceapp/lib/tagview/TagView;->mCheckEnable:Z

    .line 36
    iget-boolean v0, p0, Lcom/niceapp/lib/tagview/TagView;->mCheckEnable:Z

    if-nez v0, :cond_a

    .line 37
    const/4 v0, 0x0

    invoke-super {p0, v0}, Landroid/widget/ToggleButton;->setChecked(Z)V

    .line 39
    :cond_a
    return-void
.end method

.method public setChecked(Z)V
    .registers 3
    .param p1, "checked"    # Z

    .prologue
    .line 43
    iget-boolean v0, p0, Lcom/niceapp/lib/tagview/TagView;->mCheckEnable:Z

    if-eqz v0, :cond_7

    .line 44
    invoke-super {p0, p1}, Landroid/widget/ToggleButton;->setChecked(Z)V

    .line 46
    :cond_7
    return-void
.end method
